|
Расположение в меню |
---|
Полигональные Сетки → Создать полигональную сетку из фигуры |
Верстаки |
Mesh |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Нет |
The Mesh_FromPartShape command creates non-parametric mesh objects (Mesh Features) from shape objects (Part Features).
The inverse operation is Part ShapeFromMesh from the Part Workbench.
These are the available meshers and their settings:
0
, or unchecking the checkbox, results in a very coarse mesh.
0.1
- 1.0
range.0.2
- 10.0
range.0.2
- 10
range.For Linux users: the external Gmsh module is required.
0
to have this size automatically determined.0
to have this size automatically determined.See: Mesh Feature.
See also: FreeCAD Scripting Basics.
To create a mesh object from a shape object use the meshFromShape
method of the MeshPart module. This method has several signatures. The signature determines the mesher that will be used. The example below uses the Mefisto mesher signature.
import FreeCAD, Part, Mesh, MeshPart
cyl = FreeCAD.ActiveDocument.addObject("Part::Cylinder","Cylinder")
FreeCAD.ActiveDocument.recompute()
msh = FreeCAD.ActiveDocument.addObject("Mesh::Feature", "Mesh")
msh.Mesh = MeshPart.meshFromShape(Shape=cyl.Shape, MaxLength=1)
msh.ViewObject.DisplayMode = "Flat Lines"